package com.hc.trans;

import com.hc.common.bean.PageBean;
import com.hc.domain.Technology;
import com.hc.res.TechnologyDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 数据格式转换 - 技术
 * @author zhitb
 */
@Mapper
public interface TechnologyTrans {
    TechnologyTrans MAPPER = Mappers.getMapper(TechnologyTrans.class);

    /**
     * 将Technology转换成 TechnologyDTO
     * @param technology
     * @return
     */
    TechnologyDTO technology2TechnologyDTO(Technology technology);


    /**
     * 将PageBean<technology>转换为PageBean<TechnologyDTO>
     * @param technology
     * @return
     */
    PageBean<TechnologyDTO> technology2TechnologyDTO(PageBean<Technology> technology);

}
